package com.ebupt.migu.music.api.controller;

import com.ebupt.migu.music.api.entity.DeptModifyRequestEntity;
import com.ebupt.migu.music.api.service.DeptModifyService;
import com.ebupt.migu.music.common.entity.ResultObject;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description: 用户部门调整
 * @author: liuyangyang@ebupt.com
 * @date: 2021/4/13 15:04
 */
@Slf4j
@RestController
@RequestMapping("/dept")
public class DeptModifyController {

    @Autowired
    private DeptModifyService deptModifyService;

    /**
     * 用户部门信息调整
     * @param dept
     * @return
     */
    @RequestMapping(value = "/modify", method = RequestMethod.POST)
    public ResultObject deptModify(@RequestBody DeptModifyRequestEntity dept) {
        return deptModifyService.deptModify(dept);
    }
}
